package com.lee.www.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class CommonResult {
    private Object data;
    private MsgInfo meta;

    private CommonResult(Object data, MsgInfo meta) {
        this.data = data;
        this.meta = meta;
    }

    public static CommonResult initCommonResult(Object data,
                                                MsgInfo meta) {
        return new CommonResult(data, meta);
    }
}
